package com.ai_chat.sys.mapper;

import com.ai_chat.sys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    public User getLoginUserByEmailPasswd(@Param("email") String email, @Param("passwd") String passwd);
    public void registerUserByEmailPasswd(@Param("nickname") String nickname, @Param("email") String email, @Param("passwd") String passwd);

    public Integer bindWechatOpenid(@Param("openid") String openid, @Param("email") String email, @Param("passwd") String passwd);

    public Integer editUserPassword(@Param("passwd") String passwd, @Param("id") Integer id);

    public User PsEqual(@Param("id") Integer id, @Param("passwd") String passwd);
}
